scoreboard objectives add target_show_settings trigger
scoreboard objectives add target_show_displace_style dummy
scoreboard objectives add target_show_color dummy
scoreboard players enable @a target_show_settings
execute as @a unless score @s target_show_displace_style = @s target_show_displace_style run scoreboard players set @s target_show_displace_style 1
execute as @a unless score @s target_show_color = @s target_show_color run scoreboard players set @s target_show_color 1

execute as @a if score @s target_show_settings matches 100 run scoreboard players set @s target_show_displace_style 1
execute as @a if score @s target_show_settings matches 101 run scoreboard players set @s target_show_displace_style 2
execute as @a if score @s target_show_settings matches 102 run scoreboard players set @s target_show_displace_style 3
execute as @a if score @s target_show_settings matches 103 run scoreboard players set @s target_show_color 1
execute as @a if score @s target_show_settings matches 104 run scoreboard players set @s target_show_color 0
execute as @a if score @s target_show_settings matches 100..104 run scoreboard players set @s target_show_settings 0

execute as @a if score @s target_show_settings matches 1 run function target_show:settings/settings